#pragma once
#include "DContact.h"
#include "../DWorld.h"
#include "../DVector3.h"
#include "DJointGroup.h"
#include "../DContactInfo.h"

namespace Skill
{
	namespace Ode
	{
		namespace Joints
		{			
			void DContact::CollectManagedMemory()
			{				
				DJoint::CollectManagedMemory();
			}			

			DContact::DContact(DWorld^ world , DJointGroup^ group , DContactInfo^ contact)
				:DJoint(world,group)
			{
				dWorldID w = world? world->_This : NULL;
				dJointGroupID g = group? group->_This : NULL;
				_SetPointer(dJointCreateContact(w,g,contact->_This),true);
			}			
		}
	}
}